#include "../../include/SplitToolCppJieba.h"
#include "../../include/Configuration.h"

SplitToolCppJieba::SplitToolCppJieba()
//:_jieba(DICT_PATH,HMM_PATH,USER_DICT_PATH)
:_jieba(Configuration::getInstance()->getConfigValue("DICT_PATH"),
        Configuration::getInstance()->getConfigValue("HMM_PATH"),
        Configuration::getInstance()->getConfigValue("USER_DICT_PATH"))
{

}

SplitToolCppJieba::~SplitToolCppJieba()
{

}

vector<string> SplitToolCppJieba::cut(const string & sentence){
    static vector<string> tmp;
    _jieba.Cut(sentence, tmp, true);
    return tmp;
}